<!DOCTYPE html>
<div>This test checks that Layer doesn't crash because it is missing a ScrollableArea.</div>
<div>This test has PASSED if it didn't CRASH.</div>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function boom() {
    var ruby = document.createElement('ruby');
    var ins = document.createElement('ins');
    var map = document.createElement('map');
    var tfoot = document.createElement('tfoot');
    var blockquote = document.createElement('blockquote');
    var style = document.createElement('style');
    style.innerHTML = '.c19 { backface-visibility: hidden; } .c19:nth-child(even) { overflow: scroll; transform: scale(0.5, 0.5); }';
    var em = document.createElement('em');
    var header = document.createElement('header');
    header.setAttribute('class', 'c19');
    document.documentElement.appendChild(ruby);
    document.documentElement.appendChild(ins);
    document.documentElement.appendChild(map);
    document.documentElement.appendChild(tfoot);
    document.documentElement.appendChild(blockquote);
    document.documentElement.appendChild(style);
    document.documentElement.appendChild(em);
    document.documentElement.appendChild(header);

    document.body.offsetTop;
    var shadow = document.createElement('div').attachShadow({mode: 'open'});
    shadow.appendChild(tfoot);
}
window.onload = boom;
</script>
